package com.valuedaas.schoolsafety.common;

public class ErrorCodes {

	public static final int OK = 0;
	
	public static final int UNKNOW_ERROR = 1000;
	public static final int SESSION_TIMEOUT = 1001;    //Session超时
	public static final int RESOURCE_NOT_EXIST = 1002;  //访问资源不存在
	/** 业务异常 */
	public static final int BUSSINESS_ERROR = 1003;   //业务处理异常
	/** 缺少参数 */
	public static final int PARAMETER_MISSING = 1004;  //缺少参数
	public static final int RESOURCE_DUPLICATE = 1005;  //资源已经存在

	public static final int SESSION_EXIST = 1006;    //Session已经存在
	public static final int RESOURCE_IS_EXIST = 1007;  //资源已经存在
	/** 数据权限错误,无权操作数据 */
	public static final int DATA_AUTH = 1008;    //权限不够
	/** 参数校验错误 */
	public static final int PARAMETER_ERROR = 1009; //参数校验出错 
	
	public static final int NOT_REGISTER = 1101; //
	public static final int REGISTER_NOT_AUDIT = 1102; //
	public static final int REGISTER_AUDIT_FAIL = 1103; //
	
	//=========================硬件响应code， 0同上面表示ok======
	public static final int DEVICE_BUSY = 2001;   //设备正忙
	public static final int MQTT_PUB_EXP = 2002;   //MQTT消息pub异常
	public static final int DEVICE_TIMEOUT = 2003;   //设备响应超时
	
//	public static final int DEVICE_TIMEOUT = 2100;   //设备响应超时

}
